/*!
* 
* Copyright (c) 2009 by yuqiang @ vcedu
* 
* Description:
*
* ChangeLog:
*		$Date$	$Rev$	$Author$
* 
*/	

// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"

#include <mipavcodecencoder.h>

#include <log4cpp/Category.hh>

static log4cpp::Category& Logger = log4cpp::Category::getInstance(__Module__Name);

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		
		// init all the audio/video codec
		MIPAVCodecEncoder::initAVCodec();

		Logger.debug(DEBUG_MSG("Process Attach librtp module"));
		break;

	case DLL_THREAD_ATTACH:
		Logger.debug(DEBUG_MSG("Thread Attach librtp module"));
		break;

	case DLL_THREAD_DETACH:
		Logger.debug(DEBUG_MSG("Thread detach librtp module"));
		break;

	case DLL_PROCESS_DETACH:
		Logger.debug(DEBUG_MSG("Process detach librtp module"));
		break;
	}
	return TRUE;
}

